<!-- 秒杀列表页面 -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<link href="/css/jquery-select/jquery.searchableSelect.css" rel="stylesheet" type="text/css">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">


						<input id="productType" name="productType"  value="3"  type="hidden">



						<div class="columns pull-left col-md-2 nopadding" th:if="${flag} == '0'">
							<select data-placeholder="商户" class="form-control chosen-select" id="centreId" name="centreId" tabindex="2">
								<option value="">选择商户</option>
								<option th:each="item: ${centreList}" th:text="${item.name}" th:value="${item.centreId}"></option>
							</select>
						</div>

						<div class="pull-left search nopadding">
							<input id="productName" name="productName" type="text"
								class="form-control" placeholder="输入需查询的商品名称">
						</div>

						<div class="pull-left search nopadding">
							<input id="activityName" name="activityName" type="text"
										 class="form-control" placeholder="输入需查询的活动名称">
						</div>


						<div class="columns pull-right" role="group">

							<button class="btn btn-success" onclick="reLoad()">
								<i class="fa fa-search" aria-hidden="true"></i>查询
							</button>

							<button type="button" class="btn btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加
							</button>

						</div>
					</div>
					<table id="seckillTable" data-mobile-responsive="true"></table>
				</div>
			</div>
			<!-- <div class="panel panel-default">
				<div class="panel-body" style="padding: 0;">
					<table id="productbaseSaleListTable" data-mobile-responsive="true">
					</table>
					<table>
						<tr>
							<td height="50" colspan="7" align="right">平台总成本:  </td>
							<td align="center">
								<label  id="sumcostprice"> 0</label>
							</td>
							<td height="50" colspan="7" align="right">平台总利润:  </td>
							<td align="center">
								<label  id="sumlirun"> 0</label>
							</td>
						</tr>
					</table>
				</div>
			</div> -->

			<!-- 修改库存dialog start -->
		</div>
		<!-- 修改库存dialog end -->

		<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
		<div>
			<script type="text/javascript">
				var s_add_h = 'hidden';
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="product:manage:add">
			<script type="text/javascript">
				s_add_h = '';
			</script>
		</div>
		<div shiro:hasPermission="product:manage:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="product:manage:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
			<div shiro:hasPermission="product:manage:remove">
			<script type="text/javascript">
				var s_copy_h = '';
			</script>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="/js/appjs/marketing/marketingGroup.js"></script>
	<script src="/js/jquery-select/jquery.searchableSelect.js"></script>
    <script type="text/javascript">
	$(function(){
		$('#supply').searchableSelect();
		$('#centreId').searchableSelect();
	});
	</script>
</body>

</html>